package org.jeecg.modules.database.sharding.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.jeecg.modules.database.sharding.vo.LoginUser;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("sys_log")
public class ShardingSysLog implements Serializable {
    private static final long serialVersionUID = 8482720462943906925L;

    /**内容*/
    private String logContent;

    /**日志类型(0:操作日志;1:登录日志;2:定时任务)  */
    private Integer logType;

    /**操作类型(1:添加;2:修改;3:删除;) */
    private Integer operateType;

    /**
     * 登录用户
     */
    private LoginUser loginUser;

    private String id;
    private String createBy;
    private Date createTime;
    private Long costTime;
    private String ip;

    /**
     * 请求参数
     */
    private String requestParam;

    /**
     * 请求类型
     */
    private String requestType;

    /**
     * 请求路径
     */
    private String requestUrl;

    /**
     * 请求方法
     */
    private String method;

    /**
     * 操作人用户名称
     */
    private String username;

    /**
     * 操作人用户账户
     */
    private String userid;

    private String belongOrgName;

    private String belongDepartName;

    private transient String logType_dictText;

    private transient String operateType_dictText;
}
